package com.gzx.plugin.tjzy.modular.bank.controller;

import com.gzx.plugin.tjzy.modular.bank.bo.GzxBankInfoAddBo;
import com.gzx.plugin.tjzy.modular.bank.bo.GzxBankInfoQueryBo;
import com.gzx.plugin.tjzy.modular.bank.service.GzxBankInfoService;
import com.gzx.plugin.tjzy.modular.bank.vo.GzxBankInfoVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.common.mvc.controller.BaseController;
import vip.xiaonuo.common.pojo.CommonResult;

import java.util.List;

/**
 * @author zjt
 * @description
 * @date 2025/3/18 09:24
 */
@RestController
@RequestMapping("/tjzy/bank")
public class GzxBankInfoController extends BaseController<GzxBankInfoAddBo, GzxBankInfoVo, GzxBankInfoQueryBo, GzxBankInfoService> {

    public GzxBankInfoController(GzxBankInfoService baseService) {
        super(baseService);
    }

    @GetMapping("/listAll")
    public CommonResult<List<GzxBankInfoVo>> listAll() {
        return CommonResult.data(baseService.listAll(null));
    }
}
